import gtk

class Main:
	
	def __init__(self, widgetInstance):
		self.__logView = widgetInstance
		self.__buffer = gtk.TextBuffer(None)
		self.__logView.set_buffer(self.__buffer)
		
	def write(self, message):
		self.__buffer.insert_at_cursor(message + "\n")